import { createApp } from 'vue'
import App from './App.vue'
import './style/reset.scss'
import HosipitalTop from '@/components/hosipital_top/index.vue'
import HosipitalBottom from '@/components/hosipital_bottom/index.vue'
import Login from '@/components/login/index.vue'
import router from '@/router'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import pinia from '@/store'

const app=createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
import  './permission'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(pinia)
app.component('Login',Login)
app.component('HosipitalTop',HosipitalTop)
app.component('HosipitalBottom',HosipitalBottom)
app.mount('#app')

